//
//  MacroSizeConstants.h
//  ScholarsBridge
//
//  Created by guggle on 16/11/25.
//  Copyright © 2016年 mingthink. All rights reserved.
//

#ifndef MacroSizeConstants_h
#define MacroSizeConstants_h

#pragma mark 屏幕宽高
#define DEVW [[UIScreen mainScreen] bounds].size.width  //屏幕宽度
#define DEVH [[UIScreen mainScreen] bounds].size.height //屏幕高度

#pragma mark 适配比例
#define WIDTHSCALE DEVW/320 //以4寸屏幕计算比例
#define HEIGHTSCALE DEVH/568

#pragma mark 判断设备类型和获取设备系统号
#define ISIPHONE4 DEVH == 480 //320*480 判断iPhone4
#define ISIPHONE5 DEVH == 568 //320*568 判断iPhone5
#define ISIPHONE6 DEVW == 375 //375*667 判断iPhone6
#define ISIPHONE6_PLUS DEVW == 414 //414*736 判断iPhone6s
#define IOS_VER [[[UIDevice currentDevice] systemVersion] floatValue] //获取设备系统号

#pragma mark 导航栏的属性常量
#define NAVBAR_HEIGH 64 //顶部导航栏高度
#define STATUS_HEIGH 20 //顶部状态栏高度

#pragma mark 底部UITabBar属性常量
#define TABBAR_HEIGH 50 //底部Tabbar高度

#define MAINVIEW_HEIGHT DEVH-NAVBAR_HEIGH-TABBAR_HEIGH //主页高度
#define SUBVIEW_HEIGHT DEVH-NAVBAR_HEIGH //二级页面高度

#pragma mark 圆角 
#define CORNER_RADIUS 5

#pragma mark 定义CELL属性常量
#define CELL_LEFT_MARGIN 15//ContentView左边距
#define CELL_TOP_BOTTOM_MARGIN 10 //ContentView上下边距
#define CELL_RIGHT_SPACE 8 //ContentView右边距
#define CELL_MARGIN 6 //视图内边距

#define SEPARATOR_LINE_HEIGHT 0.7 //分隔线高度

#pragma mark TableView属性设置
#define TABLE_SECTION_HEIGHT 44 //TableView Section 高度

#define IMAGE_COMPRESSION_QUALITY 0.7
//#define UPLOAD_IMAGE_WIDTH  600

#endif /* MacroSizeConstants_h */
